<?php

namespace app\admin\validate;

use app\common\validate\BaseValidate;

class PrintYanValidate extends BaseValidate
{
    protected $rule = [
        "title|项目名称" => 'require',
        "unit|承接单位" => 'require',
        "price|价格" => 'require',
        "beg_time|开始时间" => 'require',
        "end_time|结束时间" => 'require',
    ];

    protected $message = [];
    
    
    protected $scene = [
        "add" => ["title","unit","price","beg_time","end_time"],
        "edit" => ["id","title","unit","price","beg_time","end_time"],
    ];
}